<template>
  <el-table
    :data="tableData"
    style="width: 60%;marginLeft:10%"
  >
    <el-table-column
      label="订单申请"
      width="180"
    >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>

    <el-table-column>
      <template slot-scope="scope">
        <el-input
          v-model="search"
          size="mini"
          :placeholder="scope.row.date"
        />
      </template>

    </el-table-column>
  </el-table>
</template>

<script>
export default {
  data() {
    return {
      search: '',
      tableData: [{
        date: '订货名称'
      }, {
        date: '客户名称'
      }, {
        date: '客户地址'
      }, {
        date: '数量'
      }]
    }
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row)
    },
    handleDelete(index, row) {
      console.log(index, row)
    }
  }
}
</script>
